home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-24 | 948 b | 45 lines | [TEXT/R*ch] |
- /*
-
- Copyright © 1994 Apple Computer, Inc. All Rights Reserved.
- author Mike Engber
-
- FalseAlarm-2
-
- version history
-
- v1 - initial release
-
- v2
- - uses new alarm stub
- - bug fix - if the FalseAlarm app was closed when the alarm went
- off, DoAlarm blindly sent messages to a child view (that didn't
- exist since FalseAlarm was closed)
-
- */
-
- constant kAppSymbol := '|FalseAlarm:PIEDTS|;
- constant kAppString := "FalseAlarm:PIEDTS";
-
- refNum := OpenResFileX( Home & "FalseAlarm.rsrc");
- DefConst('kAlarmSound,GetSound("dadadadadada"));
- CloseResFileX(refNum);
-
- DefConst('kAlarmFn,
- func()
- begin
- if GetRoot().(kAppSymbol) exists then
- GetRoot().(kAppSymbol):DoAlarm()
- else
- GetRoot():Notify(kNotifyAlert,"FalseAlarm","App not installed.");
- end
- );
-
- DefConst('kPopUpList,[
- { item: "1 minute", dt: 1, },
- { item: "2 minutes", dt: 2, },
- { item: "5 minutes", dt: 5, },
- { item: "10 minutes", dt: 10,},
- ]);
-
- "Reg the llama";
-